/*
 * @Author: 肖芬芳 1911683843@qq.com
 * @Date: 2022-12-08 10:13:22
 * @LastEditors: 肖芬芳 1911683843@qq.com
 * @LastEditTime: 2022-12-09 16:21:28
 * @FilePath: \blog\routes\admin\goods\class\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const goodClass = require('express').Router();

// 一级分类
goodClass.post("/list",require("./list"))
goodClass.post("/addFirstClass",require("./addFirstClass"))
goodClass.post("/modifyFirstClass",require("./modifyFirstClass"))
goodClass.get('/detail/:id',require('./detail'))
goodClass.post('/changeStatus',require("./changeStatus"))

// 二级分类
goodClass.post('/secondList',require("./secondList"))
goodClass.post('/addSecondClass',require("./addSecondClass"))
goodClass.get('/secondDetail/:id',require('./secondDetail'))
goodClass.post("/modifySecondClass",require("./modifySecondClass"))
goodClass.post('/changeSecondStatus',require("./changeSecondStatus"))


// 导出路由
module.exports = goodClass;